package com.gla.giliair.service;

import com.gla.giliair.entity.Company;
import com.gla.giliair.entity.CompanyExample;
import com.gla.giliair.web.vo.Cus;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: Yingtian qian
 * @Date: 2021/8/28 9:50
 */
public interface CompanyService {
    Company selectCompanyById(Long companyId);

    List<Company> selectAllCompanies(CompanyExample orderBy, boolean showDeleted);

    List<Company> selectCompaniesByParams(CompanyExample orderBy, boolean showDeleted, Cus searchParams);

    Map<String, Object> findAllCompanies(String sort, boolean isASC, boolean showDeleted, Integer page, Integer pageSize);

    Map<String, Object> addCompany(Company company);

    Map<String, Object> modifyCompany(Company company);

    Map<String, Object> deleteCompany(Long companyId);

    Map<String, Object> searchCompanies(String sort, boolean isASC, boolean showDeleted, Integer page, Integer pageSize, Cus searchParams);
}
